@import 'var';
@import 'common.wxss';
page {
    display: flex;
    flex-direction: column;
    font-size: $font-size;
    line-height: 1.5;
    >.container {
        position: relative;
        flex: none;
        height: 100%;
        &.has-footer {
            padding-bottom: $footer-height;
        }
    }
}

view {
    box-sizing: border-box;
}

textarea {
    box-sizing: border-box;
}

button {
    font-size: $font-size;
    border-radius: $border-radius;
}

button::after {
    border: none;
    border-radius: $border-radius;
}

.bottom {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20rpx;
    button {
        &:first-child {
            flex: 1;
            margin: 0 5px 0 10px;
            color: #ccc;
        }
        &:last-child {
            flex: 1;
            margin: 0 20rpx 0 10rpx;
            background-color: $primary-color;
        }
    }
}

.hidden {
    display: none;
}

.loadMore {
    height: 60rpx;
    color: #a1a1a1;
    font-size: 20rpx;
    line-height: 60rpx;
    text-align: center;
    margin-bottom: 40rpx;
}

.topics {
    margin-top: 15rpx;
    background-color: #fff;
    .divider {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 30rpx;
        &-line {
            width: 180rpx;
            height: 2rpx;
            background-color: #333333;
            &.divider-left {
                margin-right: 10rpx;
            }
            &.divider-right {
                margin-left: 10rpx;
            }
        }
        &-intro {
            color: #808080;
            font-size: 22rpx;
            text {
                color: #333;
            }
        }
    }
    &-more {
        display: flex;
        margin-bottom: 40rpx;
        &.single-button {
            display: block;
            button {
                display: block;
                margin: 0 auto !important;
            }
        }
        & .single-create {
            flex: none;
            margin: 0 auto 0 auto;
        }
        & .double-create {
            display: flex;
            justify-content: flex-end;
            margin: 0 60rpx 0 0;
        }
        .v-line {
            width: 1rpx;
            height: 26rpx;
            margin-right: 60rpx;
            background-color: #b3b3b3;
        }
        button {
            &.hidden {
                display: none;
            }
            &:last-child {
                display: flex;
                justify-content: flex-start;
            }
            flex: 1;
            width: 105rpx;
            height: 26rpx;
            margin: 0;
            padding: 0;
            color: #b3b3b3;
            font-weight: 400;
            font-size: 26rpx;
            line-height: 26rpx;
            background-color: transparent;
        }
    }
}

.submit {
    position: fixed;
    right: 15rpx;
    bottom: 0;
    left: 15rpx;
    padding-bottom: 15rpx;
    background-color: #fff;
    & button {
        color: #333;
        background-color: $primary-color;
        &[disabled]:not([type]) {
            background-color: #e4e5e5;
        }
    }
}

.showdot {
    display: -webkit-box;
    overflow: hidden;
    white-space: normal !important;
    text-overflow: ellipsis;
    word-wrap: break-word;
    -webkit-box-orient: vertical;
    &.clamp-1 {
        -webkit-line-clamp: 1;
    }
    &.clamp-2 {
        -webkit-line-clamp: 2;
    }
    &.clamp-3 {
        -webkit-line-clamp: 3;
    }
}

.flex {
    display: flex;
    &.flex-f-d-c {
        flex-direction: column;
    }
    &.flex-a-i-c {
        align-items: center;
    }
    &.flex-j-c-c {
        justify-content: center;
    }
}

scroll-view::-webkit-scrollbar {
    width: 0;
    color: transparent;
}

.topics-container {
    display: grid;
    grid-gap: 30rpx 30rpx;
    grid-template-columns: repeat(auto-fill, 210rpx);
    padding: 50rpx 30rpx 40rpx;
    .topic-item {
        width: 210rpx;
        border-radius: 16rpx;
        box-shadow: 0rpx 2rpx 3rpx 0rpx rgba(0, 0, 0, 0.1);
        &:first-child {
            margin-left: 0;
        }
        &:nth-child(3n + 1) {
            margin-left: 0;
        }
    }
}

::-webkit-scrollbar {
    width: 0;
    height: 0;
    color: transparent;
}

.fullScreenBottom {
    margin-bottom: 40rpx;
}

.fullScreenPaddingBottom {
    padding-bottom: 40rpx;
}